#ifndef SPHERE_H
#define SPHERE_H
#include<hitable.h>
#include<QVector3D>
class sphere:public hitable
{
public:
    sphere();
    sphere(QVector3D cen,float r,material*matptr):center(cen),radius(r),mat(matptr){}
    virtual bool hit (const ray&r,float tmin,float tmax,hit_record&rec)const;
    virtual bool bounding_box(float t0,float t1,aabb&box)const;
    QVector3D center;
    float radius;
    material*mat;

;};

#endif // SPHERE_H
